import Vue from 'vue'
import App from './App.vue'
import store from '@/store'
import router from '@/router'
import TypeNav from '@/components/TypeNav'
import Carousel from '@/components/Carousel'
import Footer from '@/components/Footer'
import PageSection from '@/components/PagSection'
import '@/mock/mockServe'
import 'swiper/css/swiper.css'

Vue.component(TypeNav.name, TypeNav)
Vue.component(Carousel.name, Carousel)
Vue.component(Footer.name, Footer)
Vue.component(PageSection.name, PageSection)

Vue.config.productionTip = false

new Vue({
  render: h => h(App),
  router,
  store,
  beforeCreate() {
    Vue.prototype.$bus = this
  }
}).$mount('#app')
